package com.warm.common.excel;

import java.util.ArrayList;
import java.util.List;

/**
 * @Date: 2019/11/15 13:31
 * @Author: LChuang
 * @Description:
 */
public class Node {

    private String parentName;

    private String name;

    private Integer level;

    /**
     * use arrayList --> ensure sort
     */
    private List<Node> child = new ArrayList<>();

    public Node(Integer level, String name) {
        this.level = level;
        this.name = name;
    }
    public Node(Integer level) {
        this.level = level;
    }

    public Node(Integer level, String parentName, String name) {
        this.parentName = parentName;
        this.level = level;
        this.name = name;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public List<Node> getChild() {
        return child;
    }

    public void setChild(List<Node> child) {
        this.child = child;
    }
}
